#-------------------------------------------------
#
# Project created by QtCreator 2013-04-24T03:50:49
#
#-------------------------------------------------


QT       += core gui
QT       += network
QT       += opengl
QT       += quick
QT       += qml
QT       += multimedia
QT       += sql
QT       += websockets

QT += qml quick gui network xmlpatterns

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = chat-qml
TEMPLATE = app


SOURCES += \
    model/friendlistmodel.cpp \
    applicationinfo.cpp \
    Main.cpp \
    model/conversationmodel.cpp

HEADERS += \
    model/friendlistmodel.h \
    applicationinfo.h \
    model/conversationmodel.h



unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}

INCLUDEPATH += $$PWD/../engine
DEPENDPATH += $$PWD/../engine

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../engine/release/ -lengine
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../engine/debug/ -lengine
else:unix: LIBS += -L$$OUT_PWD/../engine/ -lengine

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engine/release/engine.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engine/debug/engine.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../engine/libengine.a

INCLUDEPATH += $$PWD/../3rdparty/json
DEPENDPATH += $$PWD/../3rdparty/json

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/release/ -ljson
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/debug/ -ljson
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/json/ -ljson


DESTPATH = $$PWD/../../qml-chat/QML
target.path = $$DESTPATH

qml.files = *.qml
qml.path = $$DESTPATH


OTHER_FILES += \
    gui/MainWindow.qml \
    gui/common/BasePage.qml \
    gui/common/BusyIndicator.qml \
    gui/common/ButtonRightMenu.qml \
    gui/common/Header.qml \
    gui/common/Line.qml \
    gui/common/MagazineItem.qml \
    gui/common/MainBasePage.qml \
    gui/common/Menu.qml \
    gui/common/PullDownListView.qml \
    gui/common/ScrollBar.qml \
    gui/common/Seperator.qml \
    gui/common/TouchLabel.qml \
    gui/common/WaitingImage.qml \
    gui/common/ZoomableImage.qml \
    gui/common/ZoomControl.qml \
    gui/page/MainPage.qml \
    gui/page/WaitPage.qml \
    gui/page/LoginPage.qml \
    gui/page/FriendListPage.qml \
    gui/delegate/FriendListDelegate.qml \
    gui/page/ChatPage.qml \
    gui/common/ButtonStyle.qml \
    gui/common/TextFieldStyle.qml \
    gui/delegate/ConversationDelegate.qml \
    gui/delegate/MessageSent.qml \
    gui/delegate/MessageReceived.qml \
    gui/common/BorderImages.qml \
    gui/delegate/ImageAvatar.qml \
    gui/common/WaitingMessage.qml \
    gui/message/ImageAvatar.qml \
    gui/message/MessageReceived.qml \
    gui/message/MessageSent.qml \
    gui/message/WaitingMessage.qml \
    gui/message/DeliveredMessage.qml \
    gui/message/TimeMessage.qml \
    gui/message/ErrorMessage.qml \
    gui/delegate/CombinationDateTime.qml \
    gui/page/SetupPage.qml \
    gui/delegate/SetupDelegate.qml \
    gui/setup/SetupModel.qml \
    gui/page/RegisterPage.qml \
    gui/configure/ConfigureParameter.qml \
    gui/registration/TermAndPolicy.qml \
    gui/registration/TermModel.qml \
    gui/registration/TermDelegate.qml \
    resources/Constants.js \
    gui/registration/ActiveCode.qml \
    gui/registration/WaitingGetActiveCode.qml \
    gui/registration/WaitingMakeNewAccount.qml \
    gui/registration/ErrorNoneInternet.qml \
    gui/registration/ErrorPhoneNumber.qml \
    gui/common/ButtonDesigne.qml \
    gui/setup/SetupHeader.qml \
    gui/setup/SetupFullName.qml \
    gui/setup/SetupLabel.qml \
    gui/setup/SetupShareSocialNetwork.qml \
    gui/setup/SocialItem.qml \
    gui/common/Footer.qml \
    gui/common/MainFooterPage.qml \
    gui/page/SearchPage.qml \
    gui/delegate/SearchFriendDelegate.qml \
    gui/common/ImageTranparent.qml \
    gui/message/ItemImageChat.qml \
    gui/page/GroupPage.qml \
    gui/page/MessengerPage.qml \
    gui/messenger/FriendListSortNamePage.qml \
    gui/messenger/GroupingFriend.qml \
    gui/messenger/FriendListOnlinePage.qml \
    gui/group/CreateGroupPage.qml \
    gui/group/GroupSearchFriendDelegate.qml \
    gui/group/TextOnTextFieldDelegate.qml

RESOURCES += \
    Resource.qrc




